package org.coding.springbootdemocommandline.fileopr.controller;

import org.coding.springbootdemocommandline.fileopr.service.FileOperationService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * ^ enjoy coding and be bugfree boy
 *
 * @author guoxh
 * @date 2020/11/5 9:11 下午
 * @desc
 **/
@RestController
@RequestMapping("/file")
public class FileOprController {
    private static final Logger logger = LoggerFactory.getLogger(FileOprController.class);
    @Autowired
    FileOperationService fileOperationService;
    @GetMapping("img")
    public Object operateImg() throws IOException {
        fileOperationService.operate();
        return "SUCCESS";
    }
}
